package com.leather.question.feignclient;

import com.leather.common.result.Result;
import com.leather.common.vo.MessageVo;
import com.leather.question.config.FeignConfig;
import com.leather.question.feignclient.impl.MessageClientHystrix;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "campus-message", configuration = FeignConfig.class, fallback = MessageClientHystrix.class)
public interface MessageClient {


    @PostMapping(value="/send",consumes = "application/json")
    Result sendMessage(@RequestBody MessageVo messageVo);

}
